package com.company;

import java.util.Scanner;

public class Main35 {
    public static void main(String[] args) {
        Scanner sr = new Scanner(System.in);
        System.out.println("输入一个菱形边长");
        int a = sr.nextInt();//4
        for (int y = 1; y <= a-1; y++)
        {
            for (int i = a - 1; i>=y; i--) {
                System.out.print(" ");
            }
            for (int z=1;z<=y*2-1;z++){
                System.out.print("*");
            }
            System.out.println();
        }
       //下一半
        int c=a;
        for(int y=1;y<=a;y++){

            for (int i=0;i<y-1;i++){
                System.out.print(" ");
            }
            for (int z=1;z<=2*c-1;z++){
                System.out.print("*");
            }
            System.out.println("");
            c--;
        }

    }
}
